//
//  UnityAdsFullscreenVideoAd.h
//  WonderMobSDK
//
//  Created by CCYQ on 2022/2/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class UnityAdsFullscreenVideoAd;

@protocol UnityAdsFullVideoAdDelegate <NSObject>

@optional

/**
 *  插屏广告预加载成功回调
 */
- (void)unityInterstitialSuccessToLoadAd:(UnityAdsFullscreenVideoAd *)fullscreenVideoAd;

/**
 *  插屏广告预加载失败回调
 */
- (void)unityInterstitialFailToLoadAd:(UnityAdsFullscreenVideoAd *)fullscreenVideoAd error:(NSError *)error;


/**
 *  插屏广告视图展示成功回调
 *  插屏广告展示成功回调该函数
 */
- (void)unityInterstitialDidPresentScreen:(UnityAdsFullscreenVideoAd *)fullscreenVideoAd;

/**
 *  插屏广告视图展示失败回调
 *  插屏广告展示失败回调该函数
 */
- (void)unityInterstitialFailToPresent:(UnityAdsFullscreenVideoAd *)fullscreenVideoAd error:(NSError *)error;

/**
 *  插屏广告展示结束回调
 *  插屏广告展示结束回调该函数
 */
- (void)unityInterstitialDidDismissScreen:(UnityAdsFullscreenVideoAd *)fullscreenVideoAd;


/**
 *  插屏广告点击回调
 */
- (void)unityInterstitialClicked:(UnityAdsFullscreenVideoAd *)fullscreenVideoAd;


@end


@interface UnityAdsFullscreenVideoAd : NSObject

- (instancetype)initWithPlacementId:(NSString *)placementId delegate:(id<UnityAdsFullVideoAdDelegate>)delegate;

- (void)load;

- (void)showAdFromRootViewController:(UIViewController *)rootViewController;

@end

NS_ASSUME_NONNULL_END
